package com.minova.demo.mapper;

import com.minova.demo.entity.TzUserAddr;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 用户配送地址 Mapper 接口
 * </p>
 *
 * @author linrongji
 * @since 2019-12-23
 */
public interface TzUserAddrMapper extends BaseMapper<TzUserAddr> {

	@Select("select * from tz_user_addr where user_id = #{userId} and common_addr = 1")
	TzUserAddr selectByUserId(@Param("userId")String userId);

}
